package com.cuanbo.dualscreenteachfu.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.cuanbo.dualscreenteachfu.activity.MainActivity;
import com.cuanbo.dualscreenteachfu.utils.BroadcastUtil;

public class CbReceiver extends BroadcastReceiver {
    private CbListener listener;

    public CbReceiver(CbListener listener){
        this.listener=listener;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        BroadcastUtil.sendBroadcastToZhuScreen(MainActivity.type);
    }

    public interface CbListener{
        void installAPK(String path);
    }

}
